module.exports = {
  lintOnSave: false,
  productionSourceMap: false,
  publicPath: "./",
  assetsDir: "assets",
  devServer: {
    port: 9901,
    proxy: {
      "/proxy/cd/": {
        target: "https://ycwm.majiangyun.com",
        pathRewrite: {
          "/proxy/cd": "",
        },
        ws: true,
        changeOrigin: true,
      },
    },
  },
  chainWebpack: (config) => {
    config.plugin("html").tap((args) => {
      args[0].title = "创点智卫平台管理系统";
      return args;
    });
    // config.module
    // .rule("scss")
    // .test(/\.scss$/)
    // .oneOf("vue")
    // .use("px2rem-loader")
    // .loader("px2rem-loader")
    // .before("postcss-loader") // this makes it work.
    // .options({ remUnit: 192, remPrecision: 8 })
    // .end();
  },
};
